/**
 * Formats an ISO timestamp to MM-DD HH:MM format
 *
 * @param iso - ISO timestamp string
 * @returns Formatted timestamp string
 */
export function formatTimestamp(iso: string): string {
  try {
    const d = new Date(iso)
    const mm = String(d.getMonth() + 1).padStart(2, '0')
    const dd = String(d.getDate()).padStart(2, '0')
    const hh = String(d.getHours()).padStart(2, '0')
    const min = String(d.getMinutes()).padStart(2, '0')
    return `${mm}-${dd} ${hh}:${min}`
  } catch {
    return iso
  }
}
